using System.Collections;
using System.Collections.Generic;
using Spine;
using Spine.Unity;
using UnityEngine;

public class YanHua : MonoBehaviour
{
    // Start is called before the first frame update
     void Start()
    {
         //获取skeletion组件
        SkeletonGraphic sp =GetComponentInChildren<SkeletonGraphic>();
        //sp播放完成监听
        sp.AnimationState.Complete += OnAnimationComplete;
    }

    // Update is called once per frame
     private void OnAnimationComplete(TrackEntry trackEntry)
    {
        
        Destroy(gameObject);
    }

}
